﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenExpressApp.MetaModel
{
    public class EditorNames
    {
        public const string String = "string";
        public const string Boolean = "boolean";
        public const string Date = "datetime";
        public const string Enum = "enum";
        public const string LookupDropDown = "lookupDropDown";
        public const string Password = "password";
        /// <summary>
        /// 备注
        /// </summary>
        public const string Memo = "memo";
        public const string FileData = "fileData";
    }

    public class CommandCustomParams
    {
        public const string ChildViewName = "ChildViewName";
    }

    public static class CommandGroupNames
    {
        public const string Filter = "过滤";
    }

    public class CommandNames
    {
        //运行查看对象，模块根对象对应为打开模块功能，子对象对应为显示子对象功能。此为约定字符串，不能更改
        public const string CanViewObject = "BF653846-A9A7-494a-A40A-6125419C4DAF";

        public const string Add = "A3B6BB04-FB65-47F9-BFD9-409122B8D33C";
        public const string AddChildTable = "2EA63B31-63A4-4778-830A-66886801989D";
        public const string CopyAndNew = "40AD9E02-788B-4ED8-B7EF-484231ABA735";
        public const string AddChild = "E469EC54-2BD8-43D4-9D45-904A00A71EC0";
        public const string DeleteBillObject = "99C7A5BC-FD37-410F-AC6D-04C78F9D2A96";
        public const string DeleteListObject = "13A0AC1B-669A-44E6-8379-4D8E73EC52A7";
        public const string DeleteChildObject = "01AA57E5-AAA8-4B2B-9ED1-CD9C57A4F7AF";
        public const string Cancel = "7223E178-CD37-44A1-82F8-944FA36CFA91";
        public const string Refresh = "C1D4EEBE-C66E-4351-B16F-7199EFE63CA3";
        public const string Save_Bill = "13AEB297-DC2A-421D-9B1E-A067E66A2EF5";
        public const string Save_List = "56EA4979-6255-49FE-AFC1-2331558709D5";

        public const string InsertBefore = "2CCFADD4-A613-4749-AE9F-7D22A99BF73E";
        public const string InsertFollow = "B6797454-FBDB-4B4D-A1FE-F784F7147A70";
        public const string MoveDown = "4194ABA0-2342-411D-9C7A-5D19248616D9";
        public const string MoveUp = "A0806DE5-AAB2-429F-B460-45A7B1B29D4B";
        public const string LevelUp = "AD0D714E-76DF-4F2E-9C75-9746DEB25352";
        public const string LevelDown = "887C32DA-DD1B-4689-8D4D-A41F2066D5F9";
        public const string ExpandAll = "FF509307-B10E-4B77-B65B-CE6292A17029";
        public const string CollapseAll = "BFBC4834-C8AE-4DEB-9325-E55476C1C4CD";

        public const string ClearQueryCondition = "A4238E6D-B5B5-4E47-9347-3AE0E6DA0FC9";
        public const string QueryObject = "1C6999A8-3F43-4D67-A4E9-B024E384021D";
        public const string FilterObject = "52A833BE-0D02-4454-98D4-F070DB01CD99";

        //Lookup
        public const string ClearLookupPropertyValue = "AB9A2A9F-7320-4752-A946-C5947112CB89";
        public const string LookupSelectAdd = "EABF2198-4C0F-4fd9-907C-F27B04CDAE6A";

        //view
        public const string MaxShowView = "0B71A649-EF08-40A7-9F85-3537BF9571D9";

        //show child view
        public const string ChildShowView = "765F5241-3C5C-4fe7-BE8E-006B6DF8F426";

        //select
        public const string SelectAll = "F44193A9-3E37-4429-B52F-9037ADE65FC1";

        //FileAttachment
        public const string AddFile = "F985589E-41B9-40BD-81E6-D8C0D772C72A";
        public const string OpenFile = "24048A9A-D767-49AF-8E4C-15D1F601244A";
        public const string FileSaveAs = "F1365BB6-558F-452F-B77C-599FDC6AF294";
        public const string ClearFile = "BE258CAA-DC81-4A28-8675-9AC57DA737C2";


        //System Module
        public const string ModifyUserPassword = "F6DDD84B-E7E2-4F89-86F4-A1821890CAC4";
        public const string ClearAuditLogCommand = "563ae00c-5e30-47b6-9420-107485fa7dd8";

        public const string CancleCheckOperationCommand = "B1855E68-E52B-46ed-AFC2-85E3740BF0D0";

        public const string SelectDataPermissionObject = "5F753BF7-14D3-4b8e-BB14-DA74AB05076D";
        public const string EditDataPermissionExpr = "69277D56-6EDE-4b5b-BCF4-2BB58806EDA1";
        public const string DataPermissionHelp = "5E98ED38-4446-4bec-8E1F-808398CEFC65";
        public const string SelectPBSTemplate = "2048E6A8-286B-4a00-9B56-E092B3E8FCBA";
        public const string SelectPBS = "A6E2AED0-6DFC-4a15-9E84-E006775B6C16";
        public const string SelectProject = "CCB0157E-9E1F-454d-870D-5A0DD06DD475";

        //Print
        public const string Print = "2961BB08-ABBA-47A6-A429-C241E5293B37";
    }

    public class ViewRegionNames
    {
        public const string ConditionQueryRegion = "conditionQueryRegion";
        public const string NavigateQueryRegion = "navigateQueryRegion";
        public const string ListRegion = "listRegion";
        public const string DetailRegion = "detailRegion";
        public const string MainToolBar = "mainToolBar";
        public const string Pads = "pads";
    }

    public class ShellRegionNames
    {
        public const string Pads = "Pads";
        public const string Workspace = "Workspace";
        public const string Tools = "Tools";
        public const string WindowRegion = "WindowRegion";
    }
}
